// import { useRootSetting } from '/@/hooks/setting/useRootSetting';

// const provinceName = window.sessionStorage.getItem('YN_PROVINCE');

// const { getDarkMode } = useRootSetting();
export const activeColor = '#4380EA';
export const activeIconColor = '#fff';
export const iconColor = '#A5ADCF';
// const isDark = getDarkMode.value == 'dark';

export const themeStyle = {
  backgroundColor:'#fff',
  color: '#000',
};
export const themeModeStyle = {
  backgroundColor:  '#fff',
  color: '#757b8c',
};
export const hotLegendColorsShanXi = {
  pre: {
    levels: [
      0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
    ],
    colors: [
      '#00eecf00',
      '#00eecfff',
      '#00ca2cff',
      '#00ca2cff',
      '#1bc500ff',
      '#1bc500ff',
      '#41cb00ff',
      '#66d000ff',
      '#8cd500ff',
      '#b1db00ff',
      '#cadf00ff',
      '#d4e000ff',
      '#dde100ff',
      '#e7e300ff',
      '#efe300ff',
      '#eee000ff',
      '#eddc01ff',
      '#edd901ff',
      '#ecd601ff',
      '#e8c203ff',
      '#e2ab04ff',
      '#dd9406ff',
      '#d87d08ff',
      '#d3660aff',
      '#ce4f0cff',
      '#c9380eff',
      '#c4210fff',
      '#be0b11ff',
      '#bd0216ff',
      '#bf041dff',
      '#c10724ff',
      '#c30a2bff',
      '#c50d32ff',
      '#cc174aff',
      '#d72771ff',
      '#e23698ff',
      '#ee46bfff',
      '#f956e6ff',
      '#ff5ffcff',
      '#ff5ffcff',
      '#ff5ffcff',
      '#ff5ffcff',
      '#ff5ffcff',
      '#fd5efaff',
      '#eb50e7ff',
      '#d843d4ff',
      '#c636c1ff',
      '#b328aeff',
      '#a11b9bff',
      '#8e0d88ff',
      '#7c0075ff',
    ],
  },
  rf: {
    levels: [
      0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
    ],
    colors: [
      '#00eecf00',
      '#00eecfff',
      '#00ca2cff',
      '#00ca2cff',
      '#1bc500ff',
      '#1bc500ff',
      '#41cb00ff',
      '#66d000ff',
      '#8cd500ff',
      '#b1db00ff',
      '#cadf00ff',
      '#d4e000ff',
      '#dde100ff',
      '#e7e300ff',
      '#efe300ff',
      '#eee000ff',
      '#eddc01ff',
      '#edd901ff',
      '#ecd601ff',
      '#e8c203ff',
      '#e2ab04ff',
      '#dd9406ff',
      '#d87d08ff',
      '#d3660aff',
      '#ce4f0cff',
      '#c9380eff',
      '#c4210fff',
      '#be0b11ff',
      '#bd0216ff',
      '#bf041dff',
      '#c10724ff',
      '#c30a2bff',
      '#c50d32ff',
      '#cc174aff',
      '#d72771ff',
      '#e23698ff',
      '#ee46bfff',
      '#f956e6ff',
      '#ff5ffcff',
      '#ff5ffcff',
      '#ff5ffcff',
      '#ff5ffcff',
      '#ff5ffcff',
      '#fd5efaff',
      '#eb50e7ff',
      '#d843d4ff',
      '#c636c1ff',
      '#b328aeff',
      '#a11b9bff',
      '#8e0d88ff',
      '#7c0075ff',
    ],
  },
  sf: {
    levels: [0.0, 0.4, 0.8, 1.2, 1.6, 2.0, 2.4],
    colors: ['#c4c4c400', '#979797ff', '#656565ff', '#3b3c3bff', '#6440bcff', '#440566ff'],
  },
  prs: {
    levels: [500, 635, 770, 905, 1040],
    colors: ['#2c7bb6', '#abd9e9', '#ffffbf', '#fdae61', '#d7191c'],
  },
  ssrd: {
    levels: [
      0, 125000, 250000, 375000, 500000, 625000, 750000, 875000, 1000000, 1125000, 1250000, 1375000,
      1500000, 1625000, 1750000, 1875000, 2000000, 2125000, 2250000, 2375000,
      // (2500000 / 3600).toFixed(2),
      694,
    ],
    colors: [
      '#004680',
      '#005496',
      '#0062ab',
      '#0070c1',
      '#007fd6',
      '#028de8',
      '#329fb9',
      '#61b08b',
      '#91c15c',
      '#c0d32e',
      '#efe400',
      '#eecd00',
      '#ecb600',
      '#e38903',
      '#ce410b',
      '#bf031a',
      '#d92876',
      '#f34dd1',
      '#e44be0',
      '#b025ab',
      '#7c0075',
    ],
  },
  tem: {
    levels: [-40, -30, -20, -10, 0, 10, 20, 30, 40, 50, 60],
    colors: [
      '#004680',
      '#0062ab',
      '#007fd6',
      '#329fb9',
      '#91c15c',
      '#efe400',
      '#ecb600',
      '#ce410b',
      '#d92876',
      '#e44be0',
      '#7c0075',
    ],
  },
  vis: {
    levels: [
      0, 470.58720000000005, 941.1768, 1411.7640000000001, 1882.3536, 2352.9408000000003,
      2823.5280000000002, 3294.12, 3764.712, 4235.304, 4705.872, 5176.464, 5647.0560000000005,
      6117.648, 6588.24, 7058.831999999999, 7529.4, 7999.992, 8470.584, 8941.176000000001, 9411.768,
      9882.36, 10352.952, 10823.52, 11294.112000000001, 11764.704, 12235.296, 12705.887999999999,
      13176.48, 13647.048, 14117.64, 14588.232, 15058.823999999999, 15529.416000000001, 16000.008,
      16470.6, 16941.168, 17411.76, 17882.352000000003, 18352.944, 18823.536, 19294.128, 19764.696,
      20235.288, 20705.88, 21176.472, 21647.064, 22117.656, 22588.224000000002, 23058.816,
      23529.408, 25,
    ],
    colors: [
      '#0d0887',
      '#1b068d',
      '#260591',
      '#2f0596',
      '#38049a',
      '#41049d',
      '#4903a0',
      '#5102a3',
      '#5901a5',
      '#6100a7',
      '#6900a8',
      '#7100a8',
      '#7801a8',
      '#8004a8',
      '#8707a6',
      '#8e0ca4',
      '#9511a1',
      '#9c179e',
      '#a21d9a',
      '#a82296',
      '#ae2892',
      '#b42e8d',
      '#ba3388',
      '#bf3984',
      '#c43e7f',
      '#c9447a',
      '#cd4a76',
      '#d24f71',
      '#d6556d',
      '#da5b69',
      '#de6164',
      '#e26660',
      '#e66c5c',
      '#e97257',
      '#ed7953',
      '#f07f4f',
      '#f3854b',
      '#f58c46',
      '#f79342',
      '#f99a3e',
      '#fba139',
      '#fca835',
      '#fdaf31',
      '#feb72d',
      '#febe2a',
      '#fdc627',
      '#fcce25',
      '#fbd724',
      '#f8df25',
      '#f6e826',
      '#f3f027',
      '#f0f921',
    ],
  },
  u10: {
    levels: [-50, -40, -30, -20, -10, 0, 10, 20, 30, 40, 50],
    colors: [
      '#004680',
      '#0062ab',
      '#007fd6',
      '#329fb9',
      '#91c15c',
      '#efe400',
      '#ecb600',
      '#ce410b',
      '#d92876',
    ],
  },
  v10: {
    levels: [-50, -40, -30, -20, -10, 0, 10, 20, 30, 40, 50],
    colors: [
      '#004680',
      '#0062ab',
      '#007fd6',
      '#329fb9',
      '#91c15c',
      '#efe400',
      '#ecb600',
      '#ce410b',
      '#d92876',
    ],
  },
  u100: {
    levels: [-50, -40, -30, -20, -10, 0, 10, 20, 30, 40, 50],
    colors: [
      '#004680',
      '#0062ab',
      '#007fd6',
      '#329fb9',
      '#91c15c',
      '#efe400',
      '#ecb600',
      '#ce410b',
      '#d92876',
    ],
  },
  v100: {
    levels: [-50, -40, -30, -20, -10, 0, 10, 20, 30, 40, 50],
    colors: [
      '#004680',
      '#0062ab',
      '#007fd6',
      '#329fb9',
      '#91c15c',
      '#efe400',
      '#ecb600',
      '#ce410b',
      '#d92876',
    ],
  },
  wns10: {
    levels: [
      0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25,
      26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48,
      49, 50,
    ],
    colors: [
      '#0043a7',
      '#0053a8',
      '#0064aa',
      '#0075ab',
      '#0085ac',
      '#0096ae',
      '#93cd43',
      '#e5db00',
      '#d3c200',
      '#c2a900',
      '#c8b700',
      '#cfc700',
      '#d6d800',
      '#d0a604',
      '#c96809',
      '#c1290e',
      '#be0217',
      '#c20826',
      '#c70e36',
      '#cb1445',
      '#cf1b54',
      '#d42164',
      '#d82773',
      '#dd2d83',
      '#e13492',
      '#e53aa2',
      '#ea40b1',
      '#ee46c0',
      '#f34dd0',
      '#f753df',
      '#fc59ef',
      '#ff5efc',
      '#f859f5',
      '#f154ee',
      '#ea4fe6',
      '#e34adf',
      '#dc45d8',
      '#d540d1',
      '#cf3bca',
      '#c836c3',
      '#c131bc',
      '#ba2cb5',
      '#b327ae',
      '#ac22a7',
      '#a51da0',
      '#9e1898',
      '#981391',
      '#910e8a',
      '#8a0983',
      '#83047c',
      '#7c0075',
    ],
  },
  wns100: {
    levels: [
      0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25,
      26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48,
      49, 50,
    ],
    colors: [
      '#0043a7',
      '#0053a8',
      '#0064aa',
      '#0075ab',
      '#0085ac',
      '#0096ae',
      '#93cd43',
      '#e5db00',
      '#d3c200',
      '#c2a900',
      '#c8b700',
      '#cfc700',
      '#d6d800',
      '#d0a604',
      '#c96809',
      '#c1290e',
      '#be0217',
      '#c20826',
      '#c70e36',
      '#cb1445',
      '#cf1b54',
      '#d42164',
      '#d82773',
      '#dd2d83',
      '#e13492',
      '#e53aa2',
      '#ea40b1',
      '#ee46c0',
      '#f34dd0',
      '#f753df',
      '#fc59ef',
      '#ff5efc',
      '#f859f5',
      '#f154ee',
      '#ea4fe6',
      '#e34adf',
      '#dc45d8',
      '#d540d1',
      '#cf3bca',
      '#c836c3',
      '#c131bc',
      '#ba2cb5',
      '#b327ae',
      '#ac22a7',
      '#a51da0',
      '#9e1898',
      '#981391',
      '#910e8a',
      '#8a0983',
      '#83047c',
      '#7c0075',
    ],
  },
  clo: {
    levels: [0, 100],
    colors: ['#ffffff', '#a6a5ab'],
  },
  rhu: {
    levels: [0, 100],
    colors: [
      '#004680',
      '#004984',
      '#004b89',
      '#004e8d',
      '#005191',
      '#005496',
      '#00579a',
      '#005a9e',
      '#005da2',
      '#005fa7',
      '#0062ab',
      '#0065af',
      '#0068b4',
      '#006bb8',
      '#006ebc',
      '#0070c1',
      '#0073c5',
      '#0076c9',
      '#0079ce',
      '#007cd2',
      '#007fd6',
      '#0081da',
      '#0084df',
      '#0087e3',
      '#008ae7',
      '#028de8',
      '#0c91de',
      '#1594d5',
      '#1f98cc',
      '#289bc3',
      '#329fb9',
      '#3ba2b0',
      '#45a6a7',
      '#4ea99d',
      '#58ac94',
      '#61b08b',
      '#6bb382',
      '#74b778',
      '#7eba6f',
      '#87be66',
      '#91c15c',
      '#9ac553',
      '#a4c84a',
      '#adcc41',
      '#b7cf37',
      '#c0d32e',
      '#c9d625',
      '#d3da1b',
      '#dcdd12',
      '#e6e109',
      '#efe400',
      '#efe000',
      '#efdb00',
      '#eed700',
      '#eed200',
      '#eecd00',
      '#eec900',
      '#edc400',
      '#edbf00',
      '#edbb00',
      '#ecb600',
      '#ecb200',
      '#ecad00',
      '#eba600',
      '#e79801',
      '#e38903',
      '#df7b04',
      '#db6c06',
      '#d65e08',
      '#d24f09',
      '#ce410b',
      '#ca320c',
      '#c6240e',
      '#c2160f',
      '#be0711',
      '#bf031a',
      '#c40a2d',
      '#c9123f',
      '#ce1951',
      '#d42163',
      '#d92876',
      '#de3088',
      '#e3379a',
      '#e93eac',
      '#ee46bf',
      '#f34dd1',
      '#f855e3',
      '#fd5cf5',
      '#f95af6',
      '#ef53eb',
      '#e44be0',
      '#da44d6',
      '#cf3ccb',
      '#c534c0',
      '#bb2db5',
      '#b025ab',
      '#a61ea0',
      '#9b1695',
      '#910f8a',
      '#860780',
      '#7c0075',
    ],
  },
};
export const hotLegendColors =
  {
    pre: {
      levels: [
        0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
      ],
      colors: [
        '#00eecf00',
        '#00eecfff',
        '#00ca2cff',
        '#00ca2cff',
        '#1bc500ff',
        '#1bc500ff',
        '#41cb00ff',
        '#66d000ff',
        '#8cd500ff',
        '#b1db00ff',
        '#cadf00ff',
        '#d4e000ff',
        '#dde100ff',
        '#e7e300ff',
        '#efe300ff',
        '#eee000ff',
        '#eddc01ff',
        '#edd901ff',
        '#ecd601ff',
        '#e8c203ff',
        '#e2ab04ff',
        '#dd9406ff',
        '#d87d08ff',
        '#d3660aff',
        '#ce4f0cff',
        '#c9380eff',
        '#c4210fff',
        '#be0b11ff',
        '#bd0216ff',
        '#bf041dff',
        '#c10724ff',
        '#c30a2bff',
        '#c50d32ff',
        '#cc174aff',
        '#d72771ff',
        '#e23698ff',
        '#ee46bfff',
        '#f956e6ff',
        '#ff5ffcff',
        '#ff5ffcff',
        '#ff5ffcff',
        '#ff5ffcff',
        '#ff5ffcff',
        '#fd5efaff',
        '#eb50e7ff',
        '#d843d4ff',
        '#c636c1ff',
        '#b328aeff',
        '#a11b9bff',
        '#8e0d88ff',
        '#7c0075ff',
      ],
    },
    rf: {
      levels: [0, 1, 5, 10, 30, 40, 80, 120, 500, 800],
      colors: [
        '#595959',
        '#5a5865',
        '#615884',
        '#34758e',
        '#0b8c81',
        '#5c9964',
        '#9f9d54',
        '#d39a78',
        '#fa9dbe',
        '#dcdcdc',
      ],
    },
    sf: {
      levels: [0.0, 0.4, 0.8, 1.2, 1.6, 2.0, 2.4],
      colors: ['#c4c4c400', '#979797ff', '#656565ff', '#3b3c3bff', '#6440bcff', '#440566ff'],
    },
    prs: {
      levels: [500, 635, 770, 905, 1040],
      colors: ['#2c7bb6', '#abd9e9', '#ffffbf', '#fdae61', '#d7191c'],
    },
    ssrd: {
      levels: [0, 5, 50, 100, 200, 400, 600, 800, 1000, 1150],
      colors: [
        '#6e6e6e',
        '#7a696a',
        '#c23551',
        '#c74251',
        '#d05a51',
        '#e2835a',
        '#f2aa6e',
        '#ffd08d',
        '#fff5b4',
        '#ffffff',
      ],
    },
    tem: {
      levels: [-70, -55, -40, -25, -15, -8, -4, 0, 9, 20, 29, 46],
      colors: [
        '#734669',
        '#caacc3',
        '#a24691',
        '#8f59a9',
        '#9ddbd9',
        '#6abfb5',
        '#64a6bd',
        '#447d63',
        '#809318',
        '#f3b704',
        '#e85319',
        '#470e00',
      ],
    },
    vis: {
      levels: [
        0,
        1600,
        2200,
        5000,
        6000,
        8000,
        9000,
        15000,
        20, //20004, 25,
      ],
      colors: [
        '#a359a3',
        '#a159a3',
        '#a75656',
        '#a75656',
        '#5961a3',
        '#5965a3',
        '#3cbc49',
        '#53a74b',
        '#797979',
      ],
    },
    u10: {
      levels: [-50, -40, -30, -20, -10, 0, 10, 20, 30, 40, 50],
      colors: [
        '#004680',
        '#0062ab',
        '#007fd6',
        '#329fb9',
        '#91c15c',
        '#efe400',
        '#ecb600',
        '#ce410b',
        '#d92876',
      ],
    },
    v10: {
      levels: [-50, -40, -30, -20, -10, 0, 10, 20, 30, 40, 50],
      colors: [
        '#004680',
        '#0062ab',
        '#007fd6',
        '#329fb9',
        '#91c15c',
        '#efe400',
        '#ecb600',
        '#ce410b',
        '#d92876',
      ],
    },
    u100: {
      levels: [-50, -40, -30, -20, -10, 0, 10, 20, 30, 40, 50],
      colors: [
        '#004680',
        '#0062ab',
        '#007fd6',
        '#329fb9',
        '#91c15c',
        '#efe400',
        '#ecb600',
        '#ce410b',
        '#d92876',
      ],
    },
    v100: {
      levels: [-50, -40, -30, -20, -10, 0, 10, 20, 30, 40, 50],
      colors: [
        '#004680',
        '#0062ab',
        '#007fd6',
        '#329fb9',
        '#91c15c',
        '#efe400',
        '#ecb600',
        '#ce410b',
        '#d92876',
      ],
    },
    wns10: {
      levels: [0, 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 24, 27, 29, 36, 46, 51, 77, 104],
      colors: [
        '#6271b7',
        '#39619f',
        '#4a94a9',
        '#4d8d7b',
        '#53a553',
        '#359f35',
        '#a79d51',
        '#9f7f3a',
        '#a16c5c',
        '#813a4e',
        '#af5088',
        '#754a93',
        '#6d61a3',
        '#44698d',
        '#5c9098',
        '#7d44a5',
        '#e7d7d7',
        '#dbd487',
        '#cdca70',
        '#808080',
      ],
    },
    wns100: {
      levels: [0, 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 24, 27, 29, 36, 46, 51, 77, 104],
      colors: [
        '#6271b7',
        '#39619f',
        '#4a94a9',
        '#4d8d7b',
        '#53a553',
        '#359f35',
        '#a79d51',
        '#9f7f3a',
        '#a16c5c',
        '#813a4e',
        '#af5088',
        '#754a93',
        '#6d61a3',
        '#44698d',
        '#5c9098',
        '#7d44a5',
        '#e7d7d7',
        '#dbd487',
        '#cdca70',
        '#808080',
      ],
    },
    clo: {
      levels: [0, 100],
      colors: ['#ffffff', '#a6a5ab'],
    },
    rhu: {
      levels: [0, 30, 40, 50, 60, 70, 75, 80, 83, 87, 90, 93, 97, 100],
      colors: [
        '#ad5538',
        '#ad6e38',
        '#ad9238',
        '#69ad38',
        '#38ad79',
        '#38aead',
        '#38a0ad',
        '#389dad',
        '#3894ad',
        '#3887ad',
        '#3884ad',
        '#387bad',
        '#38629d',
        '#384672',
      ],
    },
  };
